<?php
class UriLib
{
    public function __construct()
    {
    }
   
    public function getBt($torrent_id)
    {
        $bt = ConfLib::get('uri', 'bt_file_server');
        return $bt . $torrent_id . '.torrent';
    }
   
    //public function getPt($torrent_id, $passkey)
    public function getPt($torrent_id)
    {
        $pt = ConfLib::get('uri', 'pt_file_server');
        //return $pt . $torrent_id . '.torrent?passkey=' . $passkey;
        return $pt . $torrent_id . '.torrent';
    }
}
?>
